package com.evan.kdl.test.stopwatch;

import org.springframework.util.StopWatch;

public class SpringStopWatchExample {

    public static void main(String[] args) throws InterruptedException {
        StopWatch sw = new StopWatch();
        sw.start();
        //long task simulation
        Thread.sleep(1000);
        sw.stop();
        System.out.println(sw.getTotalTimeMillis());
    }
}